package com.itheima;

import com.itheima.common.Sing;
import com.itheima.staticProxy.proxy.ProxyStar;
import com.itheima.staticProxy.real.SuperStar;
import org.junit.Test;


public class StaticProxy {
    @Test
    public void test(){
        //创建一个明星对象
        Sing superStar = new SuperStar();
        //创建经纪人对象
        ProxyStar proxyStar = new ProxyStar(superStar);
        //开始唱歌
        proxyStar.sing();
    }
}
